package com.ruoyi.system.domain.survey;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问卷审批记录对象 survey_approval
 * 
 */
public class SurveyApproval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审批ID */
    private Long approvalId;

    /** 问卷ID */
    private Long surveyId;
    
    /** 问卷标题 */
    @Excel(name = "问卷标题")
    private String surveyTitle;

    /** 审批人ID */
    private Long approvalUserId;
    
    /** 审批人姓名 */
    @Excel(name = "审批人")
    private String approvalUserName;

    /** 状态（0拒绝 1通过） */
    @Excel(name = "状态", readConverterExp = "0=拒绝,1=通过")
    private String status;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String opinion;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Long getApprovalId() {
        return approvalId;
    }

    public void setApprovalId(Long approvalId) {
        this.approvalId = approvalId;
    }

    public Long getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(Long surveyId) {
        this.surveyId = surveyId;
    }

    public String getSurveyTitle() {
        return surveyTitle;
    }

    public void setSurveyTitle(String surveyTitle) {
        this.surveyTitle = surveyTitle;
    }

    public Long getApprovalUserId() {
        return approvalUserId;
    }

    public void setApprovalUserId(Long approvalUserId) {
        this.approvalUserId = approvalUserId;
    }

    public String getApprovalUserName() {
        return approvalUserName;
    }

    public void setApprovalUserName(String approvalUserName) {
        this.approvalUserName = approvalUserName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SurveyApproval [approvalId=" + approvalId + ", surveyId=" + surveyId + ", approvalUserId="
                + approvalUserId + ", status=" + status + "]";
    }
} 